package com.pig4cloud.pig.village.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 规则的条件列表
 * @author Will Hu
 * @date 2022.3.27
 */
@Getter
public enum RuleConditionType {
	AGE("age", "年龄"),
	REGISTER_TYPE("registerType", "户籍类型"),
	ABANDON_POULTRY("abandonPoultry", "是否退奍"),
	LIVING_TYPE("livingType", "居住类型"),
	SCHOOL("school", "学校"),
	HARD_GROUP("hardGroup", "困难人群"),
	RETIRED_CAPTAIN("retiredCaptain", "老队长"),
	RETIRED_PRINCIPAL("retiredPrincipal", "老正副职"),
	PARTY_MEMBER("partyMember", "党员"),

	VIOLATION_TYPE("violationType", "重大违规"),
	ANTI_FUNERAL_SIMPLICITY("antiFuneralSimplicity", "反对移风易俗"),
	STRUCTURE_VIOLATION("structureViolation", "违章搭建拒不整改"),
	MATERNITY_VIOLATION("maternityViolation", "违法生育"),
	OVERBID("overbid", "漫天要价拒不支持村建"),
	RESTRAIN_EPIDEMIC_PREVENTION("overbid", "抵制、违反防疫工作"),
	OTHER("other", "其他违规"),
	;

	RuleConditionType(String name, String description) {
		this.name = name;
		this.description = description;
	}

	@EnumValue
	@JsonValue
	private final String name;
	private final String description;
}
